import Vue from 'vue'
import App from './App.vue'
import router from './router'
import Axios from "axios";
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import 'font-awesome/css/font-awesome.min.css'
import VueAxios from "vue-axios";
import {request} from './util/loginToken';
Vue.config.productionTip = false;

// Axios.defaults.baseURL='http://localhost:8080/json'
Axios.defaults.baseURL='http://localhost:80/power'
Axios.defaults.headers.common['token'] = window.sessionStorage.getItem('accountToken')  // 在header中添加token

Vue.use(ElementUI)
Vue.use(VueAxios, Axios)
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')

request();

